import request from '@/utils/request'

export function listLeaseNotifications(query) {
  return request({
    url: '/system/houseLease/notifications/list',
    method: 'get',
    params: query
  })
}

export function getLeaseNotification(notificationId) {
  return request({
    url: `/system/houseLease/notifications/${notificationId}`,
    method: 'get'
  })
}

export function createLeaseNotification(data) {
  return request({
    url: '/system/houseLease/notifications',
    method: 'post',
    data
  })
}

export function updateLeaseNotification(notificationId, data) {
  return request({
    url: `/system/houseLease/notifications/${notificationId}`,
    method: 'put',
    data
  })
}

export function changeLeaseNotificationStatus(notificationId, data) {
  return request({
    url: `/system/houseLease/notifications/${notificationId}/status`,
    method: 'put',
    data
  })
}

export function deleteLeaseNotifications(notificationIds) {
  return request({
    url: `/system/houseLease/notifications/${notificationIds}`,
    method: 'delete'
  })
}
